package com.cw.paging3

import com.squareup.moshi.Json

data class ApiResponse(
    val page: Int,
    @Json(name = "per_page")
    val perPage: Int,
    val total: Int,
    @Json(name = "total_pages")
    val totalPages: Int,
    val data: List<Data>
)

data class Data(
    val id: Int,
    val email: String,
    val first_name: String,
    val last_name: String,
    val avatar: String
)

//data class ApiResponse(
//    @Json(name = "ad")
//    val ad: Ad,
//    @Json(name = "data")
//    val myData: List<Data>,
//    @Json(name = "page")
//    val page: Int,
//    @Json(name = "per_page")
//    val perPage: Int,
//    @Json(name = "total")
//    val total: Int,
//    @Json(name = "total_pages")
//    val totalPages: Int
//)
//
//data class Ad(
//    @Json(name = "company")
//    val company: String,
//    @Json(name = "text")
//    val text: String,
//    @Json(name = "url")
//    val url: String
//)
//
//data class Data(
//    @Json(name = "avatar")
//    val avatar: String,
//    @Json(name = "email")
//    val email: String,
//    @Json(name = "first_name")
//    val firstName: String,
//    @Json(name = "id")
//    val id: Int,
//    @Json(name = "last_name")
//    val lastName: String
//)